package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * UpGroupMembership entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_group_membership")
@IdClass(e2q.portal.domain.uPortal.UpGroupMembershipId.class)
public class UpGroupMembership implements java.io.Serializable {

	// private Department department;
	@Id
	@Column(name = "GROUP_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private String groupId;
	@Id
	@Column(name = "MEMBER_SERVICE")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private String memberService;
	@Id
	@Column(name = "MEMBER_KEY")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private String memberKey;
	@Id
	@Column(name = "MEMBER_IS_GROUP")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private String memberIsGroup;

	// Constructors

	/** default constructor */
	public UpGroupMembership() {
	}

	/** full constructor */
	public UpGroupMembership(String groupId, String memberService,
			String memberKey, String memberIsGroup) {
		this.groupId = groupId;
		this.memberService = memberService;
		this.memberKey = memberKey;
		this.memberIsGroup = memberIsGroup;
	}

	// Property accessors
	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getMemberService() {
		return this.memberService;
	}

	public void setMemberService(String memberService) {
		this.memberService = memberService;
	}

	public String getMemberKey() {
		return this.memberKey;
	}

	public void setMemberKey(String memberKey) {
		this.memberKey = memberKey;
	}

	public String getMemberIsGroup() {
		return this.memberIsGroup;
	}

	public void setMemberIsGroup(String memberIsGroup) {
		this.memberIsGroup = memberIsGroup;
	}
}